package com.example.project.projectspringcloud.service.workorder;

import com.example.project.projectspringcloud.common.OperationException;
import com.example.project.projectspringcloud.entity.Page;
import com.example.project.projectspringcloud.entity.workorder.WorkOrder;

import java.util.List;

public interface WorkOrderService {

    /**
     * 获取工单列表
     * ==============================================================================
     *
     * @param workOrder
     * @param page
     * @return
     */
    List<WorkOrder> list(WorkOrder workOrder, Page page);

    /***
     * 保存工单
     * ==============================================================================
     *
     * @param workOrder
     * @return
     */
    boolean save(WorkOrder workOrder) throws OperationException;

    /**
     * 单条获取
     * ==============================================================================
     *
     * @param workOrder
     * @return
     */
    WorkOrder get(WorkOrder workOrder);
}
